/**
 * ConnectDB.java
 * Nov 6, 2013
 * Copyright: phongtdse60732@fpt.edu.vn
 */
package DBUltilities;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 * @author trandophong
 * @version 1.0
 */
public class ConnectDB {

	public static Connection getConnection() {
		Connection conn = null;
		try {
			Class.forName("com.mysql.jdbc.Driver");
			conn = DriverManager.getConnection(
					"jdbc:mysql://localhost:3306/XMLProject", "root", "root");

		} catch (ClassNotFoundException e) {
		} catch (SQLException e) {
		}
		return conn;
	}

}
